import { BaseClass, PageDto } from "@/type/tablePage";

export class UserDto extends BaseClass {
    id!: string;
    username!: string;
    nickname!: string;
    password!: string;
    avatar!: string;
    sex!: string;
    email!: string;
    tel!: string;
}

export class UserSelDto extends PageDto {
    ifWithRole!: string
}

export class UserSelAllDto {
}

export class UserInsDto {
    username?: string;
    nickname?: string;
    password?: string;
    avatar?: string;
    sex?: string;
    email?: string;
    tel?: string;
}

export class UserUpdDto extends UserInsDto {
    id!: string;
}

export class UserDto2 {
    id!: string;
    username!: string;
    nickname!: string;
}

export class LoginDto2 {
    username!: string
    password!: string
    // loginRole!: string
    // psdType?: string
}

export class LoginDto extends LoginDto2 {
    verificationCode!: string
    verificationCodeUuid!: string
}

export class RegistDto extends LoginDto2 {
}

export class UserUpdPsdDto {
    oldp!: string
    newp1!: string
    newp2!: string
}

export class AdminResetUserPsdDto {
    id!: string
    password!: string
}
